package com.example.design.c.abstractFactory;

/**
 * 抽象工厂模式
 */
public class TestFatory {

    public static void main(String[] args) {
        FactoryAnimal factoryAnimal=new FactoryNative();
        factoryAnimal.getCat().show();
        factoryAnimal.getDog().show();
        System.out.println();
        FactoryAnimal factoryAnimal1=new FactoryAmerica();
        factoryAnimal1.getCat().show();
        factoryAnimal1.getDog().show();

    }


}
